<?php
/**
 * @version SVN: $Id$
 * @package    fmcSeminaire
 * @subpackage Models
 * @author     EasyJoomla {@link http://www.easy-joomla.org Easy-Joomla.org}
 * @author     Ludovic Launer {@link }
 * @author     Created on 10-Nov-2010
 * @license    GNU/GPL
 */

//-- No direct access
defined('_JEXEC') or die('=;)');

jimport('joomla.application.component.model');

/**
 * fmcSeminaireList Model
 *
 * @package    fmcSeminaire
 * @subpackage Models
 */
class fmcSeminaireListModelfmcSeminaireList extends JModel
{
    /**
     * fmcSeminaireList data array
     *
     * @var array
     */
    var $_data;

    /**
     * Retrieves the hello data.
     *
     * @return array Array of objects containing the data from the database
     */
    function getData()
    {
    	
    	//$post	= JRequest::get('post');
    	//$cid	= JRequest::getVar( 'cid' );
    	
        //-- Lets load the data if it doesn't already exist
        if(empty($this->_data))
        {
            $query = '	SELECT * 
            			FROM #__fmcseminaire s
            			JOIN #__fmcseminaire_campagnes c ON s.campagneId=c.campagneId
            			;';
            $this->_data = $this->_getList($query);
        }

        return $this->_data;
    }//function

 

}//class
